import request from '@/utils/request'

// 查询菜品审核列表
export function listDishcheck(query) {
  return request({
    url: '/ordercheck/dishcheck/list',
    method: 'get',
    params: query
  })
}

// 查询菜品审核详细
export function getDishcheck(dishid) {
  return request({
    url: '/ordercheck/dishcheck/' + dishid,
    method: 'get'
  })
}

// 新增菜品审核
export function addDishcheck(data) {
  return request({
    url: '/ordercheck/dishcheck',
    method: 'post',
    data: data
  })
}

// 修改菜品审核
export function updateDishcheck(data) {
  return request({
    url: '/ordercheck/dishcheck',
    method: 'put',
    data: data
  })
}

// 删除菜品审核
export function delDishcheck(dishid) {
  return request({
    url: '/ordercheck/dishcheck/' + dishid,
    method: 'delete'
  })

}
// 通过菜品审核
export function throDishcheck(dishid) {
  return request({
    url: '/ordercheck/dishcheck/status/' + dishid,
    method: 'post'
  })
}
